﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DealCardLogManage.aspx.cs" Inherits="SDLITS.Web.Driver.DealCardLogManage" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel6" />
      <f:Panel ID="Panel6" Title="交割单查询" ShowBorder="false" BodyPadding="0" ShowHeader="True" Layout="Fit" runat="server" AutoScroll="true">
        <Toolbars>
            <f:Toolbar runat="server">
                <Items>
                    <f:DatePicker runat="server" EnableEdit="false" ID="txt_start" LabelWidth="70px" Label="开始日期" Width="200px"></f:DatePicker>
                    <f:ToolbarSeparator runat="server"></f:ToolbarSeparator>
                    <f:DatePicker runat="server" CompareControl="txt_start" LabelWidth="70px" CompareOperator="GreaterThan" CompareMessage="结束日期要大于开始日期" EnableEdit="false" ID="txt_end" Label="结束日期" Width="200px"></f:DatePicker>
                    <f:ToolbarSeparator ID="ToolbarSeparator1" Hidden="true" runat="server"></f:ToolbarSeparator>
                    <f:DropDownList runat="server" ID="drp_company" Width="220px" LabelWidth="40px" AutoPostBack="true" OnSelectedIndexChanged="drp_company_SelectedIndexChanged" Label="公司"></f:DropDownList>
                    <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server"></f:ToolbarSeparator>
                    <f:DropDownList runat="server" EnableAjaxLoading="true" ID="drp_driver" Width="280px" LabelWidth="60px" Label="驾驶员"></f:DropDownList>
                    <f:ToolbarSeparator ID="ToolbarSeparator3" runat="server"></f:ToolbarSeparator>
                    <f:ToolbarText runat="server" ID="tool_txt"></f:ToolbarText>
                    <f:ToolbarFill runat="server"></f:ToolbarFill>
                    <f:Button runat="server" ID="btn_search" OnClick="btn_search_Click" Text="确定"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
        <Items>
        <f:Grid ID="Grid1" ShowBorder="false" PageSize="20" AllowPaging="true" EnableCheckBoxSelect="true" IsDatabasePaging="true" OnRowDataBound="Grid1_RowDataBound"
             OnPageIndexChange="Grid1_PageIndexChange" EnableColumnLines="true" EnableHeaderMenu="false" ShowHeader="false" Title="表格" Width="800px" runat="server"
             EnableCollapse="false" DataKeyNames="MessageID" OnRowCommand="Grid1_RowCommand">
            <Columns>
                <f:RowNumberField EnablePagingNumber="true" Width="80px" TextAlign="Center" />
                <f:TemplateField HeaderText="始发地" Width="200px">
                    <ItemTemplate>
                        <%# string.Format("{2} - {1} - {0}", Eval("StartRegionName"), Eval("StartParentRegionName"), Eval("StartTopRegionName"))%>
                    </ItemTemplate>
                </f:TemplateField>
                <f:TemplateField HeaderText="目的地" Width="200px">
                    <ItemTemplate>
                        <%# string.Format("{2} - {1} - {0}", Eval("EndRegionName"), Eval("EndParentRegionName"), Eval("EndTopRegionName"))%>
                    </ItemTemplate>
                </f:TemplateField>
                <f:BoundField Width="100px" DataField="GoodName" HeaderText="货物名" />
                <f:BoundField Width="60px" DataField="Amount" HeaderText="数量" />
                <f:BoundField Width="60px" DataField="UnitType" HeaderText="单位" />
                <f:BoundField Width="80px" DataField="TransPrice" HeaderText="运输价格" />
                <f:BoundField Width="130px" DataField="CutoverDriverIDNumber" HeaderText="交割驾驶员身份证" />
                <f:BoundField Width="100px" DataField="CutoverDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="交割时间" />
                <f:LinkButtonField Width="80px" CommandName="view" Text="打印" HeaderText="打印" TextAlign="Center"/>
            </Columns>
        </f:Grid>
        </Items>
       </f:Panel>
        <f:HiddenField runat="server" ID="hidroomid" Text="-1"></f:HiddenField>
    </form>
</body>
</html>
